package com.awenhui.demo.model.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户角色关联表
 *
 * @author yuxf
 * @version 1.0
 * @date 2020/5/6 16:56
 */
@Data
@Entity
@Table(name="ua_user_role")
public class UserRoleEntity {

    @Id
    @Column(name = "id")
    private Long id;
    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 角色Id
     */
    private Long roleId;
}
